{#<!DOCTYPE html>#}
{#<html lang="en">#}
{#<head>#}
{#    <meta charset="UTF-8">#}
{#    <title>小饭桌</title>#}
{#</head>#}
{#<body>#}
{#{% include "xfz_hotarticle.html" %}#}
{#</body>#}
{#</html>#}
{#通过继承方式#}
{% extends 'xfz_base.html'%}

{% block title %}首页{% endblock %}

{% block head %}
    <style>
        body{
            background-color: pink;
        }
    </style>
{% endblock %}

{% block body %}
{#    继承来自父模板的内容#}
    {{ block.super }}
    {#    加载热门文章#}
    {% include 'xfz_hotarticle.html' %}
    <div>django学习中</div>
{% endblock %}